import cv2
from matplotlib import pyplot as plt

img = cv2.imread('D:\\Suzy.jpg', 0)
template = cv2.imread('D:\\Suzy_eyes.jpg', 0)
th, tw = template.shape[::]
rv = cv2.matchTemplate(img, template, cv2.TM_SQDIFF)
minVal, maxVal, minLoc ,maxLoc= cv2.minMaxLoc(rv)
topLeft = minLoc
bottomRight = (topLeft[0] +tw, topLeft[1] + th)
cv2.rectangle(img, topLeft, bottomRight, 255, 2)
plt.subplot(121), plt.imshow(rv, cmap='gray')
plt.title('Matching Result'), plt.xticks([]), plt.yticks([])
plt.subplot(122), plt.imshow(img, cmap='gray')
plt.title('Detected Point'), plt.xticks([]), plt.yticks([])
plt.show()